﻿using System;
using BL.Abstract;
using DAL.Abstract;
using DAL.DbFacade;

namespace BL.Class
{
    public class GenericSearch : IGenericSearch
    {
        private readonly IGenericSearchMember genericSearchMember;

        public GenericSearch()
        {
            genericSearchMember = new GenericSearchDB();
        }

        public bool CheckIfLabelExist(string label)
        {
            var result = genericSearchMember.CheckIfLabelExist(label);
            return result;
        }

        public bool CheckIfPartNumberExist(string partNumber)
        {
            var result = genericSearchMember.CheckIfPartNumberExist(partNumber);
            return result;
        }
    }
}
